<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function Person(name, age) {
				this.name = name;
				this.age = age;
				this.eat = function() {
					console.log(this.name + "吃饭...");
				}
			}

			var p1 = new Person("zhangsan", 20);
			console.log(p1);
			// console.log(Person.prototype) //Person的原型对象
			// console.log(p1.__proto__) //Person的原型对象
			// console.log(Person.prototype === p1.__proto__);

			// console.log(Person.prototype.prototype)//Person的原型对象的原型对象
		</script>
	</body>
</html>
